/**
 * <copyright>
 *
 * Copyright (c) 2011 Zeligsoft (2009) Limited
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   Zeligsoft (2009) Limited - Initial API and implementation
 *
 * </copyright>
 *
 */
package org.omg.deployment.parts.forms;

import org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent;
import org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent;
import org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart;
import org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent;
import org.eclipse.emf.eef.runtime.impl.parts.CompositePropertiesEditionPart;
import org.eclipse.emf.eef.runtime.ui.parts.PartComposer;
import org.eclipse.emf.eef.runtime.ui.parts.sequence.BindingCompositionSequence;
import org.eclipse.emf.eef.runtime.ui.parts.sequence.CompositionSequence;
import org.eclipse.emf.eef.runtime.ui.parts.sequence.CompositionStep;
import org.eclipse.emf.eef.runtime.ui.utils.EditingUtils;
import org.eclipse.emf.eef.runtime.ui.widgets.FormUtils;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.Form;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart;
import org.omg.deployment.parts.DeploymentViewsRepository;
import org.omg.deployment.providers.DeploymentMessages;


/**
 * @author Toby McClean; Zeligsoft (2009) Limited
 * @generated
 */
public class DeploymentPlanPropertiesEditionPartForm extends CompositePropertiesEditionPart implements IFormPropertiesEditionPart, DeploymentPlanPropertiesEditionPart {

	protected Text label;
	protected Text uUID;
	protected Text numOfImplementations;
	protected Text numOfinstances;
	protected Text numOfConnections;
	protected Text numOfArtifacts;
	protected Text numOfConstraints;
	protected Text href;
	protected Text id;
	protected Text idref;
	protected Text type;
	protected Text version;



	/**
	 * Default constructor
	 * @param editionComponent the {@link IPropertiesEditionComponent} that manage this part
	 * @generated
	 */
	public DeploymentPlanPropertiesEditionPartForm(IPropertiesEditionComponent editionComponent) {
    super(editionComponent);
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
	 *  createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
	 * @generated
	 */
	public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
    ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
    Form form = scrolledForm.getForm();
    view = form.getBody();
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    view.setLayout(layout);
    createControls(widgetFactory, view);
    return scrolledForm;
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
	 *  createControls(org.eclipse.ui.forms.widgets.FormToolkit, org.eclipse.swt.widgets.Composite)
	 * @generated
	 */
	public void createControls(final FormToolkit widgetFactory, Composite view) {
    CompositionSequence deploymentPlanStep = new BindingCompositionSequence(propertiesEditionComponent);
    CompositionStep cDPPropertiesStep = deploymentPlanStep.addStep(DeploymentViewsRepository.DeploymentPlan.CDPProperties.class);
    cDPPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.CDPProperties.label);
    cDPPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID);
    
    CompositionStep statisticsStep = deploymentPlanStep.addStep(DeploymentViewsRepository.DeploymentPlan.Statistics.class);
    statisticsStep.addStep(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations);
    statisticsStep.addStep(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances);
    statisticsStep.addStep(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections);
    statisticsStep.addStep(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts);
    statisticsStep.addStep(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints);
    
    CompositionStep xMIPropertiesStep = deploymentPlanStep.addStep(DeploymentViewsRepository.DeploymentPlan.XMIProperties.class);
    xMIPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.XMIProperties.href);
    xMIPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.XMIProperties.id);
    xMIPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref);
    xMIPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.XMIProperties.type);
    xMIPropertiesStep.addStep(DeploymentViewsRepository.DeploymentPlan.XMIProperties.version);
    
    
    composer = new PartComposer(deploymentPlanStep) {

      @Override
      public Composite addToPart(Composite parent, Object key) {
        if (key == DeploymentViewsRepository.DeploymentPlan.CDPProperties.class) {
          return createCDPPropertiesGroup(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.CDPProperties.label) {
          return 		createLabelText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID) {
          return 		createUUIDText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.Statistics.class) {
          return createStatisticsGroup(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations) {
          return 		createNumOfImplementationsText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances) {
          return 		createNumOfinstancesText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections) {
          return 		createNumOfConnectionsText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts) {
          return 		createNumOfArtifactsText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints) {
          return 		createNumOfConstraintsText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.XMIProperties.class) {
          return createXMIPropertiesGroup(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.XMIProperties.href) {
          return 		createHrefText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.XMIProperties.id) {
          return 		createIdText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref) {
          return 		createIdrefText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.XMIProperties.type) {
          return 		createTypeText(widgetFactory, parent);
        }
        if (key == DeploymentViewsRepository.DeploymentPlan.XMIProperties.version) {
          return 		createVersionText(widgetFactory, parent);
        }
        return parent;
      }
    };
    composer.compose(view);
  }
	/**
	 * @generated
	 */
	protected Composite createCDPPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
    Section cDPPropertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    cDPPropertiesSection.setText(DeploymentMessages.DeploymentPlanPropertiesEditionPart_CDPPropertiesGroupLabel);
    GridData cDPPropertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
    cDPPropertiesSectionData.horizontalSpan = 3;
    cDPPropertiesSection.setLayoutData(cDPPropertiesSectionData);
    Composite cDPPropertiesGroup = widgetFactory.createComposite(cDPPropertiesSection);
    GridLayout cDPPropertiesGroupLayout = new GridLayout();
    cDPPropertiesGroupLayout.numColumns = 3;
    cDPPropertiesGroup.setLayout(cDPPropertiesGroupLayout);
    cDPPropertiesSection.setClient(cDPPropertiesGroup);
    return cDPPropertiesGroup;
  }

	/**
	 * @generated
	 */
	
	protected Composite createLabelText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_LabelLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.CDPProperties.label, DeploymentViewsRepository.FORM_KIND));
    label = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    label.setEnabled(false);
    label.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    label.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData labelData = new GridData(GridData.FILL_HORIZONTAL);
    label.setLayoutData(labelData);
    label.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.CDPProperties.label, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, label.getText()));
      }
    });
    label.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.CDPProperties.label, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, label.getText()));
        }
      }
    });
    EditingUtils.setID(label, DeploymentViewsRepository.DeploymentPlan.CDPProperties.label);
    EditingUtils.setEEFtype(label, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.CDPProperties.label, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createUUIDText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_UUIDLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID, DeploymentViewsRepository.FORM_KIND));
    uUID = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    uUID.setEnabled(false);
    uUID.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    uUID.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData uUIDData = new GridData(GridData.FILL_HORIZONTAL);
    uUID.setLayoutData(uUIDData);
    uUID.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, uUID.getText()));
      }
    });
    uUID.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, uUID.getText()));
        }
      }
    });
    EditingUtils.setID(uUID, DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID);
    EditingUtils.setEEFtype(uUID, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.CDPProperties.uUID, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	protected Composite createStatisticsGroup(FormToolkit widgetFactory, final Composite parent) {
    Section statisticsSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    statisticsSection.setText(DeploymentMessages.DeploymentPlanPropertiesEditionPart_StatisticsGroupLabel);
    GridData statisticsSectionData = new GridData(GridData.FILL_HORIZONTAL);
    statisticsSectionData.horizontalSpan = 3;
    statisticsSection.setLayoutData(statisticsSectionData);
    Composite statisticsGroup = widgetFactory.createComposite(statisticsSection);
    GridLayout statisticsGroupLayout = new GridLayout();
    statisticsGroupLayout.numColumns = 3;
    statisticsGroup.setLayout(statisticsGroupLayout);
    statisticsSection.setClient(statisticsGroup);
    return statisticsGroup;
  }

	/**
	 * @generated
	 */
	
	protected Composite createNumOfImplementationsText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_NumOfImplementationsLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations, DeploymentViewsRepository.FORM_KIND));
    numOfImplementations = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    numOfImplementations.setEnabled(false);
    numOfImplementations.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    numOfImplementations.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData numOfImplementationsData = new GridData(GridData.FILL_HORIZONTAL);
    numOfImplementations.setLayoutData(numOfImplementationsData);
    numOfImplementations.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfImplementations.getText()));
      }
    });
    numOfImplementations.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfImplementations.getText()));
        }
      }
    });
    EditingUtils.setID(numOfImplementations, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations);
    EditingUtils.setEEFtype(numOfImplementations, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfImplementations, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createNumOfinstancesText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_NumOfinstancesLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances, DeploymentViewsRepository.FORM_KIND));
    numOfinstances = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    numOfinstances.setEnabled(false);
    numOfinstances.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    numOfinstances.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData numOfinstancesData = new GridData(GridData.FILL_HORIZONTAL);
    numOfinstances.setLayoutData(numOfinstancesData);
    numOfinstances.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfinstances.getText()));
      }
    });
    numOfinstances.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfinstances.getText()));
        }
      }
    });
    EditingUtils.setID(numOfinstances, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances);
    EditingUtils.setEEFtype(numOfinstances, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfinstances, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createNumOfConnectionsText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_NumOfConnectionsLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections, DeploymentViewsRepository.FORM_KIND));
    numOfConnections = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    numOfConnections.setEnabled(false);
    numOfConnections.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    numOfConnections.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData numOfConnectionsData = new GridData(GridData.FILL_HORIZONTAL);
    numOfConnections.setLayoutData(numOfConnectionsData);
    numOfConnections.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfConnections.getText()));
      }
    });
    numOfConnections.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfConnections.getText()));
        }
      }
    });
    EditingUtils.setID(numOfConnections, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections);
    EditingUtils.setEEFtype(numOfConnections, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConnections, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createNumOfArtifactsText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_NumOfArtifactsLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts, DeploymentViewsRepository.FORM_KIND));
    numOfArtifacts = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    numOfArtifacts.setEnabled(false);
    numOfArtifacts.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    numOfArtifacts.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData numOfArtifactsData = new GridData(GridData.FILL_HORIZONTAL);
    numOfArtifacts.setLayoutData(numOfArtifactsData);
    numOfArtifacts.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfArtifacts.getText()));
      }
    });
    numOfArtifacts.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfArtifacts.getText()));
        }
      }
    });
    EditingUtils.setID(numOfArtifacts, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts);
    EditingUtils.setEEFtype(numOfArtifacts, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfArtifacts, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createNumOfConstraintsText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_NumOfConstraintsLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints, DeploymentViewsRepository.FORM_KIND));
    numOfConstraints = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    numOfConstraints.setEnabled(false);
    numOfConstraints.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    numOfConstraints.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData numOfConstraintsData = new GridData(GridData.FILL_HORIZONTAL);
    numOfConstraints.setLayoutData(numOfConstraintsData);
    numOfConstraints.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfConstraints.getText()));
      }
    });
    numOfConstraints.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, numOfConstraints.getText()));
        }
      }
    });
    EditingUtils.setID(numOfConstraints, DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints);
    EditingUtils.setEEFtype(numOfConstraints, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.Statistics.numOfConstraints, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	protected Composite createXMIPropertiesGroup(FormToolkit widgetFactory, final Composite parent) {
    Section xMIPropertiesSection = widgetFactory.createSection(parent, Section.TITLE_BAR | Section.TWISTIE | Section.EXPANDED);
    xMIPropertiesSection.setText(DeploymentMessages.DeploymentPlanPropertiesEditionPart_XMIPropertiesGroupLabel);
    GridData xMIPropertiesSectionData = new GridData(GridData.FILL_HORIZONTAL);
    xMIPropertiesSectionData.horizontalSpan = 3;
    xMIPropertiesSection.setLayoutData(xMIPropertiesSectionData);
    Composite xMIPropertiesGroup = widgetFactory.createComposite(xMIPropertiesSection);
    GridLayout xMIPropertiesGroupLayout = new GridLayout();
    xMIPropertiesGroupLayout.numColumns = 3;
    xMIPropertiesGroup.setLayout(xMIPropertiesGroupLayout);
    xMIPropertiesSection.setClient(xMIPropertiesGroup);
    return xMIPropertiesGroup;
  }

	/**
	 * @generated
	 */
	
	protected Composite createHrefText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_HrefLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.XMIProperties.href, DeploymentViewsRepository.FORM_KIND));
    href = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    href.setEnabled(false);
    href.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    href.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData hrefData = new GridData(GridData.FILL_HORIZONTAL);
    href.setLayoutData(hrefData);
    href.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.href, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, href.getText()));
      }
    });
    href.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.href, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, href.getText()));
        }
      }
    });
    EditingUtils.setID(href, DeploymentViewsRepository.DeploymentPlan.XMIProperties.href);
    EditingUtils.setEEFtype(href, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.XMIProperties.href, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createIdText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_IdLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.XMIProperties.id, DeploymentViewsRepository.FORM_KIND));
    id = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    id.setEnabled(false);
    id.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    id.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData idData = new GridData(GridData.FILL_HORIZONTAL);
    id.setLayoutData(idData);
    id.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.id, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, id.getText()));
      }
    });
    id.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.id, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, id.getText()));
        }
      }
    });
    EditingUtils.setID(id, DeploymentViewsRepository.DeploymentPlan.XMIProperties.id);
    EditingUtils.setEEFtype(id, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.XMIProperties.id, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createIdrefText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_IdrefLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref, DeploymentViewsRepository.FORM_KIND));
    idref = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    idref.setEnabled(false);
    idref.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    idref.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData idrefData = new GridData(GridData.FILL_HORIZONTAL);
    idref.setLayoutData(idrefData);
    idref.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, idref.getText()));
      }
    });
    idref.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, idref.getText()));
        }
      }
    });
    EditingUtils.setID(idref, DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref);
    EditingUtils.setEEFtype(idref, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.XMIProperties.idref, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createTypeText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_TypeLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.XMIProperties.type, DeploymentViewsRepository.FORM_KIND));
    type = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    type.setEnabled(false);
    type.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    type.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData typeData = new GridData(GridData.FILL_HORIZONTAL);
    type.setLayoutData(typeData);
    type.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, type.getText()));
      }
    });
    type.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.type, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, type.getText()));
        }
      }
    });
    EditingUtils.setID(type, DeploymentViewsRepository.DeploymentPlan.XMIProperties.type);
    EditingUtils.setEEFtype(type, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.XMIProperties.type, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }

	/**
	 * @generated
	 */
	
	protected Composite createVersionText(FormToolkit widgetFactory, Composite parent) {
    FormUtils.createPartLabel(widgetFactory, parent, DeploymentMessages.DeploymentPlanPropertiesEditionPart_VersionLabel, propertiesEditionComponent.isRequired(DeploymentViewsRepository.DeploymentPlan.XMIProperties.version, DeploymentViewsRepository.FORM_KIND));
    version = widgetFactory.createText(parent, ""); //$NON-NLS-1$
    version.setEnabled(false);
    version.setToolTipText(DeploymentMessages.DeploymentPlan_ReadOnly);
    version.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData versionData = new GridData(GridData.FILL_HORIZONTAL);
    version.setLayoutData(versionData);
    version.addFocusListener(new FocusAdapter() {
      /**
       * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void focusLost(FocusEvent e) {
        if (propertiesEditionComponent != null)
          propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.version, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, version.getText()));
      }
    });
    version.addKeyListener(new KeyAdapter() {
      /**
       * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
       * @generated
       */
      @Override
      @SuppressWarnings("synthetic-access")
      public void keyPressed(KeyEvent e) {
        if (e.character == SWT.CR) {
          if (propertiesEditionComponent != null)
            propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(DeploymentPlanPropertiesEditionPartForm.this, DeploymentViewsRepository.DeploymentPlan.XMIProperties.version, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, version.getText()));
        }
      }
    });
    EditingUtils.setID(version, DeploymentViewsRepository.DeploymentPlan.XMIProperties.version);
    EditingUtils.setEEFtype(version, "eef::Text"); //$NON-NLS-1$
    FormUtils.createHelpButton(widgetFactory, parent, propertiesEditionComponent.getHelpContent(DeploymentViewsRepository.DeploymentPlan.XMIProperties.version, DeploymentViewsRepository.FORM_KIND), null); //$NON-NLS-1$
    return parent;
  }



	/**
	 * {@inheritDoc}
	 * 
	 * @see org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionListener#firePropertiesChanged(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
	 * @generated
	 */
	public void firePropertiesChanged(IPropertiesEditionEvent event) {
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getLabel()
	 * @generated
	 */
	public String getLabel() {
    return label.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setLabel(String newValue)
	 * @generated
	 */
	public void setLabel(String newValue) {
    if (newValue != null) {
      label.setText(newValue);
    } else {
      label.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getUUID()
	 * @generated
	 */
	public String getUUID() {
    return uUID.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setUUID(String newValue)
	 * @generated
	 */
	public void setUUID(String newValue) {
    if (newValue != null) {
      uUID.setText(newValue);
    } else {
      uUID.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getNumOfImplementations()
	 * @generated
	 */
	public String getNumOfImplementations() {
    return numOfImplementations.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setNumOfImplementations(String newValue)
	 * @generated
	 */
	public void setNumOfImplementations(String newValue) {
    if (newValue != null) {
      numOfImplementations.setText(newValue);
    } else {
      numOfImplementations.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getNumOfinstances()
	 * @generated
	 */
	public String getNumOfinstances() {
    return numOfinstances.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setNumOfinstances(String newValue)
	 * @generated
	 */
	public void setNumOfinstances(String newValue) {
    if (newValue != null) {
      numOfinstances.setText(newValue);
    } else {
      numOfinstances.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getNumOfConnections()
	 * @generated
	 */
	public String getNumOfConnections() {
    return numOfConnections.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setNumOfConnections(String newValue)
	 * @generated
	 */
	public void setNumOfConnections(String newValue) {
    if (newValue != null) {
      numOfConnections.setText(newValue);
    } else {
      numOfConnections.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getNumOfArtifacts()
	 * @generated
	 */
	public String getNumOfArtifacts() {
    return numOfArtifacts.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setNumOfArtifacts(String newValue)
	 * @generated
	 */
	public void setNumOfArtifacts(String newValue) {
    if (newValue != null) {
      numOfArtifacts.setText(newValue);
    } else {
      numOfArtifacts.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getNumOfConstraints()
	 * @generated
	 */
	public String getNumOfConstraints() {
    return numOfConstraints.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setNumOfConstraints(String newValue)
	 * @generated
	 */
	public void setNumOfConstraints(String newValue) {
    if (newValue != null) {
      numOfConstraints.setText(newValue);
    } else {
      numOfConstraints.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getHref()
	 * @generated
	 */
	public String getHref() {
    return href.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setHref(String newValue)
	 * @generated
	 */
	public void setHref(String newValue) {
    if (newValue != null) {
      href.setText(newValue);
    } else {
      href.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getId()
	 * @generated
	 */
	public String getId() {
    return id.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setId(String newValue)
	 * @generated
	 */
	public void setId(String newValue) {
    if (newValue != null) {
      id.setText(newValue);
    } else {
      id.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getIdref()
	 * @generated
	 */
	public String getIdref() {
    return idref.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setIdref(String newValue)
	 * @generated
	 */
	public void setIdref(String newValue) {
    if (newValue != null) {
      idref.setText(newValue);
    } else {
      idref.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getType()
	 * @generated
	 */
	public String getType() {
    return type.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setType(String newValue)
	 * @generated
	 */
	public void setType(String newValue) {
    if (newValue != null) {
      type.setText(newValue);
    } else {
      type.setText(""); //$NON-NLS-1$
    }
  }


	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#getVersion()
	 * @generated
	 */
	public String getVersion() {
    return version.getText();
  }

	/**
	 * {@inheritDoc}
	 * 
	 * @see org.omg.deployment.parts.DeploymentPlanPropertiesEditionPart#setVersion(String newValue)
	 * @generated
	 */
	public void setVersion(String newValue) {
    if (newValue != null) {
      version.setText(newValue);
    } else {
      version.setText(""); //$NON-NLS-1$
    }
  }




	/**
	 * {@inheritDoc}
	 *
	 * @see org.eclipse.emf.eef.runtime.api.parts.IPropertiesEditionPart#getTitle()
	 * @generated
	 */
	public String getTitle() {
    return DeploymentMessages.DeploymentPlan_Part_Title;
  }



}
